package de.mp3player.gui;

import java.awt.*;

import javax.swing.*;

import de.mp3player.app.App;

public class AlbumListPanel extends JPanel{
	
	private JButton btn1;
	private JButton btn2;
	private JButton btn3;
	private JButton btn4;
	private JButton btn5;
	private JButton btn6;
	private JButton btn7;
	private JButton btn8;
	private JButton btn9;
	private JButton btn10;
	private JButton btn11;
	private JButton btn12;
	private JButton btn13;
	private JButton btn14;
	private JButton btn15;
	private JButton btn16;
	private JButton btn17;
	private JButton btn18;
	private JButton btn19;
	private JButton btn20;
	private JButton btn21;
	private JButton btn22;
	private JButton btn23;
	private JButton btn24;
	
	
	public AlbumListPanel(){
		setLayout(new GridLayout(0,4,6,8));
		this.btn1 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0000_dooffy_design.png"));
		this.btn2 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0001_ice_skate.png"));
		this.btn3 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0002_present.png"));
		this.btn4 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0003_santa.png"));
		this.btn5 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0004_apple.png"));
		this.btn6 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0005_tree.png"));
		this.btn7 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0006_nature.png"));
		this.btn8 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0007_decor.png"));
		this.btn9 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0008_candles.png"));
		this.btn10 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0009_sweetness.png"));
		this.btn11 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0010_bear.png"));
		this.btn12 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0000_dooffy_design.png"));
		this.btn13 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0001_ice_skate.png"));
		this.btn14 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0002_present.png"));
		this.btn15 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0003_santa.png"));
		this.btn16 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0004_apple.png"));
		this.btn17 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0005_tree.png"));
		this.btn18 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0006_nature.png"));
		this.btn19 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0007_decor.png"));
		this.btn20 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0008_candles.png"));
		this.btn21 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0009_sweetness.png"));
		this.btn22 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0010_bear.png"));
		this.btn23 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0006_nature.png"));
		this.btn24 = new JButton(App.makeIcon("/resources/064/dooffy_ikony_christmas_0005_tree.png"));
		
		initConfiguration();		
		initRasterPanel();
	}

	private void initConfiguration() {
		this.btn1.setBorder(null);
		this.btn1.setOpaque(false);
		this.btn1.setBackground(Color.GRAY);
		
		this.btn2.setBorder(null);
		this.btn2.setOpaque(false);
		this.btn2.setBackground(Color.GRAY);
		this.btn3.setBorder(null);
		this.btn3.setOpaque(false);
		this.btn3.setBackground(Color.GRAY);
		this.btn4.setBorder(null);
		this.btn4.setOpaque(false);
		this.btn4.setBackground(Color.GRAY);
		this.btn5.setBorder(null);
		this.btn5.setOpaque(false);
		this.btn5.setBackground(Color.GRAY);
		this.btn6.setBorder(null);
		this.btn6.setOpaque(false);
		this.btn6.setBackground(Color.GRAY);
		this.btn7.setBorder(null);
		this.btn7.setOpaque(false);
		this.btn7.setBackground(Color.GRAY);
		this.btn8.setBorder(null);
		this.btn8.setOpaque(false);
		this.btn8.setBackground(Color.GRAY);
		this.btn9.setBorder(null);
		this.btn9.setOpaque(false);
		this.btn9.setBackground(Color.GRAY);
		this.btn10.setBorder(null);
		this.btn10.setOpaque(false);
		this.btn10.setBackground(Color.GRAY);
		this.btn11.setBorder(null);
		this.btn11.setOpaque(false);
		this.btn11.setBackground(Color.GRAY);
		this.btn12.setBorder(null);
		this.btn12.setOpaque(false);
		this.btn12.setBackground(Color.GRAY);
		this.btn13.setBorder(null);
		this.btn13.setOpaque(false);
		this.btn13.setBackground(Color.GRAY);
		this.btn14.setBorder(null);
		this.btn14.setOpaque(false);
		this.btn14.setBackground(Color.GRAY);
		this.btn15.setBorder(null);
		this.btn15.setOpaque(false);
		this.btn15.setBackground(Color.GRAY);
		this.btn16.setBorder(null);
		this.btn16.setOpaque(false);
		this.btn16.setBackground(Color.GRAY);
		this.btn17.setBorder(null);
		this.btn17.setOpaque(false);
		this.btn17.setBackground(Color.GRAY);
		this.btn18.setBorder(null);
		this.btn18.setOpaque(false);
		this.btn18.setBackground(Color.GRAY);
		this.btn19.setBorder(null);
		this.btn19.setOpaque(false);
		this.btn19.setBackground(Color.GRAY);
		this.btn20.setBorder(null);
		this.btn20.setOpaque(false);
		this.btn20.setBackground(Color.GRAY);
		this.btn21.setBorder(null);
		this.btn21.setOpaque(false);
		this.btn21.setBackground(Color.GRAY);
		this.btn22.setBorder(null);
		this.btn22.setOpaque(false);
		this.btn22.setBackground(Color.GRAY);
		this.btn23.setBorder(null);
		this.btn23.setOpaque(false);
		this.btn23.setBackground(Color.GRAY);
		this.btn24.setBorder(null);
		this.btn24.setOpaque(false);
		this.btn24.setBackground(Color.GRAY);
		
	}

	private void initRasterPanel() {
		add(btn1);
		add(btn2);
		add(btn3);
		add(btn4);
		add(btn5);
		add(btn6);
		add(btn7);
		add(btn8);
		add(btn9);
		add(btn10);
		add(btn11);
		add(btn12);
		add(btn13);
		add(btn14);
		add(btn15);
		add(btn16);
		add(btn17);
		add(btn18);
		add(btn19);
		add(btn20);
		add(btn21);
		add(btn22);
		add(btn23);
		add(btn24);
	}
}
